package com.netinfo.springboot.enums;

import lombok.Getter;

@Getter
public enum ResultEnum {

    SUCESS(0,"成功"),
    ERROR(-1,"失败"),
    QUERY_ERROR(1,"查询失败"),
    QUERY_SUCCESS(2,"查询成功"),
    ADD_SUCCESS(3,"添加成功"),
    ADD_FILED(4,"添加失败");

    private Integer code;
    private String message;

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
